package rkw.database.repositories;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import rkw.database.model.AdministratorToken;
import rkw.database.model.Election;
import rkw.database.model.Member;

@Transactional
public interface AdministratorTokenRepository extends JpaRepository<AdministratorToken, Long> {

	AdministratorToken findByMemberAndElection(Member member, Election election);

	AdministratorToken findByValue(String value);

}
